import { Component } from "react";
// 全局css样式
import "./app.scss";
import "./assets/iconfont/iconfont.css";
import { setGlobalData } from "./global_data";
import { getQuery } from "./helper/utils";

class App extends Component {
  componentDidMount() {}

  componentDidShow(options) {
    const scene = decodeURIComponent(options?.query?.scene);
    setGlobalData("scene", getQuery(scene));
  }

  componentDidHide() {}

  componentDidCatchError() {}

  // this.props.children 是将要会渲染的页面
  render() {
    return this.props.children;
  }
}

export default App;
